// import './App.css'
import './style/MyStyle.scss'
import {useState} from "react";


function MyButton({count, onClick}: { count: number; onClick: () => void }) {
    return (
        <button onClick={onClick}>Click {count} times</button>
    )
}

function App() {
    const [count, setCount] = useState(0)

    const changeCount = () => {
        setCount(count + 1)
    }

    const vdom = (
        <>
            <MyButton count={count} onClick={changeCount}/>
            <MyButton count={count} onClick={changeCount}/>
        </>
    )

    return vdom
}


export default App
